﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;

namespace WebSite.Models
{

    #region Models
    
    public class SheetModel
    {
        public SheetModel() 
        {
            DetailList = new List<DetailModel>();
        }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName { get; set; }

        /// <summary>
        /// 项目代号
        /// </summary>
        public string ProjectCode { get; set; }

        /// <summary>
        /// 年度进度
        /// </summary>
        public string AnnualProgress { get; set; }

        /// <summary>
        /// 经费来源	
        /// </summary>
        public string FundsSources { get; set; }

        /// <summary>
        /// 项目周期
        /// </summary>
        public string ProjectLife { get; set; }

        /// <summary>
        /// 项目负责人
        /// </summary>
        public string ProjectPIC { get; set; }

        /// <summary>
        /// 是否为软课题
        /// </summary>
        public string IsSoft { get; set; }

        /// <summary>
        /// 支出明细
        /// </summary>
        public List<DetailModel> DetailList { get; set; }
    }

    /// <summary>
    /// 预算
    /// </summary>
    public class Budget
    {
        /// <summary>
        /// 预算金额
        /// </summary>
        public decimal TotalAmount { get; set; }
    
        

    }

    public class DetailModel
    {
        /// <summary>
        /// 父Item的ID
        /// </summary>
        public int Parent_ID { get; set; }

        /// <summary>
        /// Item的ID
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        /// Item的Name
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 一级/二级/三级
        /// </summary>
        public int Lv { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public string Count { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public string Price { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public string Amount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Rem { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public string Number { get; set; }
    }

    #endregion
}
